package Server.Tasks;
import Server.PhoneServerThread.States;
import Server.PhoneServerThread;

public class CallerRingingTask extends PhoneTask{
	
	private PhoneServerThread phone;
	
	public CallerRingingTask (int priority, String d, PhoneServerThread phone)
	{
		super(priority, d);
		this.phone = phone;
	}
	
	public void ProcessTask()
	{
		phone.setPhoneState(States.WAITING);
	}
	
	public String GetOutput() {
		return ("CallerRinging");
	}
}
